package com.bto.solar.work.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bto.solar.work.entity.Area;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

/**
 * @author shiyi
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("lease_lessor")
@Data
@ApiModel(value = "LeaseLessor对象", description = "承租人")
public class LeaseLessorRes {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("编码")
    private String code;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("使用范围")
    private String areaId;

    private Timestamp createdAt;

    private Timestamp updatedAt;

    @TableField(exist = false)
    private Area area;
}
